using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN KhoaService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: KhoaService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class KhoaService : IKhoaService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: Khoa_ID</para>
		/// <para>Output: KhoaEntity</para>
		///</summary>
		public KhoaEntity SelectOne(int Khoa_ID){
			KhoaDAO dao = new KhoaDAO();
			return dao.SelectOne(Khoa_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaKhoa</para>
		/// <para>Input: MaKhoa</para>
		/// <para>Output: KhoaEntity</para>
		///</summary>
		public KhoaEntity SelectOneByMaKhoa(string MaKhoa){
			KhoaDAO dao = new KhoaDAO();
			return dao.SelectOneByMaKhoa(MaKhoa);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KhoaEntity</para>
		///</summary>
		public List<KhoaEntity> SelectAll(){
			KhoaDAO dao = new KhoaDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			KhoaDAO dao = new KhoaDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KhoaEntity</para>
		///</summary>
		public List<KhoaEntity> SelectAllFilter(string strFilter){
			KhoaDAO dao = new KhoaDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			KhoaDAO dao = new KhoaDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: KhoaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(KhoaEntity o){
			KhoaDAO dao = new KhoaDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: KhoaEntity</para>
		/// <para>Output: KhoaEntity</para>
		///</summary>
		public KhoaEntity SaveRet(KhoaEntity o){
			KhoaDAO dao = new KhoaDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of KhoaEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<KhoaEntity> list){
			KhoaDAO dao = new KhoaDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of KhoaEntity</para>
		/// <para>Output: List of KhoaEntity</para>
		///</summary>
		public List<KhoaEntity> SaveListRet(List<KhoaEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: KhoaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(KhoaEntity o){
			KhoaDAO dao = new KhoaDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of KhoaEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<KhoaEntity> list){
			KhoaDAO dao = new KhoaDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaKhoa</para>
		/// <para>Input: NewMaKhoa,Khoa_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaKhoa(string NewMaKhoa,int Khoa_ID){
			KhoaDAO dao = new KhoaDAO();
			return dao.UpdateMaKhoa(NewMaKhoa,Khoa_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenKhoa</para>
		/// <para>Input: NewTenKhoa,Khoa_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenKhoa(string NewTenKhoa,int Khoa_ID){
			KhoaDAO dao = new KhoaDAO();
			return dao.UpdateTenKhoa(NewTenKhoa,Khoa_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaKhoa</para>
		/// <para>Input: NewMoTaKhoa,Khoa_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaKhoa(string NewMoTaKhoa,int Khoa_ID){
			KhoaDAO dao = new KhoaDAO();
			return dao.UpdateMoTaKhoa(NewMoTaKhoa,Khoa_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: KhoaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(KhoaEntity o){
			KhoaDAO dao = new KhoaDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: Khoa_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int Khoa_ID){
			KhoaDAO dao = new KhoaDAO();
			return dao.DeleteByID(Khoa_ID);
		}
		#endregion

		#region Select,delete by Khoa_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END KhoaWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

